home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / plugin / nsIPluginInstanceOwner.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  10KB  |  282 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIPluginInstanceOwner.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIPluginInstanceOwner_h__
  6. #define __gen_nsIPluginInstanceOwner_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nspluginroot_h__
  14. #include "nspluginroot.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. #include "nsplugin.h"
  22. class nsIPluginInstance; /* forward declaration */
  23.  
  24. class nsIDocument; /* forward declaration */
  25.  
  26.  
  27. /* starting interface:    nsIPluginInstanceOwner */
  28. #define NS_IPLUGININSTANCEOWNER_IID_STR "18270870-32f1-11d2-a830-0040959a28c9"
  29.  
  30. #define NS_IPLUGININSTANCEOWNER_IID \
  31.   {0x18270870, 0x32f1, 0x11d2, \
  32.     { 0xa8, 0x30, 0x00, 0x40, 0x95, 0x9a, 0x28, 0xc9 }}
  33.  
  34. class nsIPluginInstanceOwner : public nsISupports {
  35.  public: 
  36.  
  37.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IPLUGININSTANCEOWNER_IID)
  38.  
  39.   /**
  40.    * Let the owner know that an instance has been created
  41.    */
  42.   /* void setInstance (in nsIPluginInstance aInstance); */
  43.   NS_IMETHOD SetInstance(nsIPluginInstance *aInstance) = 0;
  44.  
  45.   /**
  46.    * Get the instance associated with this owner.
  47.    */
  48.   /* void getInstance (in nsIPluginInstanceRef aInstance); */
  49.   NS_IMETHOD GetInstance(nsIPluginInstance * & aInstance) = 0;
  50.  
  51.   /**
  52.    * Get a handle to the window structure of the owner.
  53.    * This pointer cannot be made persistant by the caller.
  54.    */
  55.   /* void getWindow (in nsPluginWindowStarRef aWindow); */
  56.   NS_IMETHOD GetWindow(nsPluginWindow * & aWindow) = 0;
  57.  
  58.   /**
  59.    * Get the display mode for the plugin instance.
  60.    */
  61.   /* readonly attribute nsPluginMode mode; */
  62.   NS_IMETHOD GetMode(nsPluginMode *aMode) = 0;
  63.  
  64.   /**
  65.    * Create a place for the plugin to live in the owner's
  66.    * environment. this may or may not create a window
  67.    * depending on the windowless state of the plugin instance.
  68.    */
  69.   /* void createWidget (); */
  70.   NS_IMETHOD CreateWidget(void) = 0;
  71.  
  72.   /**
  73.    * Called when there is a valid target so that the proper
  74.    * frame can be updated with new content. will not be called
  75.    * with nsnull aTarget.
  76.    */
  77.   NS_IMETHOD
  78.   GetURL(const char *aURL, const char *aTarget, 
  79.          void *aPostData, PRUint32 aPostDataLen, 
  80.          void *aHeadersData, PRUint32 aHeadersDataLen, 
  81.          PRBool aIsFile = PR_FALSE) = 0;
  82.   /**
  83.    * Show a status message in the host environment.
  84.    */
  85.   /* void showStatus (in string aStatusMsg); */
  86.   NS_IMETHOD ShowStatus(const char *aStatusMsg) = 0;
  87.  
  88.   NS_IMETHOD
  89.   ShowStatus(const PRUnichar *aStatusMsg) = 0;
  90.   /**
  91.    * Get the associated document.
  92.    */
  93.   /* readonly attribute nsIDocument document; */
  94.   NS_IMETHOD GetDocument(nsIDocument * *aDocument) = 0;
  95.  
  96.   /**
  97.    * Invalidate the rectangle
  98.    */
  99.   /* void invalidateRect (in nsPluginRectPtr aRect); */
  100.   NS_IMETHOD InvalidateRect(nsPluginRect * aRect) = 0;
  101.  
  102.   /**
  103.    * Invalidate the region
  104.    */
  105.   /* void invalidateRegion (in nsPluginRegion aRegion); */
  106.   NS_IMETHOD InvalidateRegion(nsPluginRegion aRegion) = 0;
  107.  
  108.   /**
  109.    * Force a redraw
  110.    */
  111.   /* void forceRedraw (); */
  112.   NS_IMETHOD ForceRedraw(void) = 0;
  113.  
  114.   /**
  115.    * Get the specified variable
  116.    */
  117.   /* void getValue (in nsPluginInstancePeerVariable aVariable, in voidPtr aValue); */
  118.   NS_IMETHOD GetValue(nsPluginInstancePeerVariable aVariable, void * aValue) = 0;
  119.  
  120.   /**
  121.    * Inform the owner that no plugin for the given mime type was found.
  122.    */
  123.   /* void pluginNotAvailable (in string aMimeType); */
  124.   NS_IMETHOD PluginNotAvailable(const char *aMimeType) = 0;
  125.  
  126. };
  127.  
  128. /* Use this macro when declaring classes that implement this interface. */
  129. #define NS_DECL_NSIPLUGININSTANCEOWNER \
  130.   NS_IMETHOD SetInstance(nsIPluginInstance *aInstance); \
  131.   NS_IMETHOD GetInstance(nsIPluginInstance * & aInstance); \
  132.   NS_IMETHOD GetWindow(nsPluginWindow * & aWindow); \
  133.   NS_IMETHOD GetMode(nsPluginMode *aMode); \
  134.   NS_IMETHOD CreateWidget(void); \
  135.   NS_IMETHOD ShowStatus(const char *aStatusMsg); \
  136.   NS_IMETHOD GetDocument(nsIDocument * *aDocument); \
  137.   NS_IMETHOD InvalidateRect(nsPluginRect * aRect); \
  138.   NS_IMETHOD InvalidateRegion(nsPluginRegion aRegion); \
  139.   NS_IMETHOD ForceRedraw(void); \
  140.   NS_IMETHOD GetValue(nsPluginInstancePeerVariable aVariable, void * aValue); \
  141.   NS_IMETHOD PluginNotAvailable(const char *aMimeType); 
  142.  
  143. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  144. #define NS_FORWARD_NSIPLUGININSTANCEOWNER(_to) \
  145.   NS_IMETHOD SetInstance(nsIPluginInstance *aInstance) { return _to SetInstance(aInstance); } \
  146.   NS_IMETHOD GetInstance(nsIPluginInstance * & aInstance) { return _to GetInstance(aInstance); } \
  147.   NS_IMETHOD GetWindow(nsPluginWindow * & aWindow) { return _to GetWindow(aWindow); } \
  148.   NS_IMETHOD GetMode(nsPluginMode *aMode) { return _to GetMode(aMode); } \
  149.   NS_IMETHOD CreateWidget(void) { return _to CreateWidget(); } \
  150.   NS_IMETHOD ShowStatus(const char *aStatusMsg) { return _to ShowStatus(aStatusMsg); } \
  151.   NS_IMETHOD GetDocument(nsIDocument * *aDocument) { return _to GetDocument(aDocument); } \
  152.   NS_IMETHOD InvalidateRect(nsPluginRect * aRect) { return _to InvalidateRect(aRect); } \
  153.   NS_IMETHOD InvalidateRegion(nsPluginRegion aRegion) { return _to InvalidateRegion(aRegion); } \
  154.   NS_IMETHOD ForceRedraw(void) { return _to ForceRedraw(); } \
  155.   NS_IMETHOD GetValue(nsPluginInstancePeerVariable aVariable, void * aValue) { return _to GetValue(aVariable, aValue); } \
  156.   NS_IMETHOD PluginNotAvailable(const char *aMimeType) { return _to PluginNotAvailable(aMimeType); } 
  157.  
  158. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  159. #define NS_FORWARD_SAFE_NSIPLUGININSTANCEOWNER(_to) \
  160.   NS_IMETHOD SetInstance(nsIPluginInstance *aInstance) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInstance(aInstance); } \
  161.   NS_IMETHOD GetInstance(nsIPluginInstance * & aInstance) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInstance(aInstance); } \
  162.   NS_IMETHOD GetWindow(nsPluginWindow * & aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindow(aWindow); } \
  163.   NS_IMETHOD GetMode(nsPluginMode *aMode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMode(aMode); } \
  164.   NS_IMETHOD CreateWidget(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateWidget(); } \
  165.   NS_IMETHOD ShowStatus(const char *aStatusMsg) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowStatus(aStatusMsg); } \
  166.   NS_IMETHOD GetDocument(nsIDocument * *aDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocument(aDocument); } \
  167.   NS_IMETHOD InvalidateRect(nsPluginRect * aRect) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateRect(aRect); } \
  168.   NS_IMETHOD InvalidateRegion(nsPluginRegion aRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateRegion(aRegion); } \
  169.   NS_IMETHOD ForceRedraw(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceRedraw(); } \
  170.   NS_IMETHOD GetValue(nsPluginInstancePeerVariable aVariable, void * aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aVariable, aValue); } \
  171.   NS_IMETHOD PluginNotAvailable(const char *aMimeType) { return !_to ? NS_ERROR_NULL_POINTER : _to->PluginNotAvailable(aMimeType); } 
  172.  
  173. #if 0
  174. /* Use the code below as a template for the implementation class for this interface. */
  175.  
  176. /* Header file */
  177. class nsPluginInstanceOwner : public nsIPluginInstanceOwner
  178. {
  179. public:
  180.   NS_DECL_ISUPPORTS
  181.   NS_DECL_NSIPLUGININSTANCEOWNER
  182.  
  183.   nsPluginInstanceOwner();
  184.  
  185. private:
  186.   ~nsPluginInstanceOwner();
  187.  
  188. protected:
  189.   /* additional members */
  190. };
  191.  
  192. /* Implementation file */
  193. NS_IMPL_ISUPPORTS1(nsPluginInstanceOwner, nsIPluginInstanceOwner)
  194.  
  195. nsPluginInstanceOwner::nsPluginInstanceOwner()
  196. {
  197.   /* member initializers and constructor code */
  198. }
  199.  
  200. nsPluginInstanceOwner::~nsPluginInstanceOwner()
  201. {
  202.   /* destructor code */
  203. }
  204.  
  205. /* void setInstance (in nsIPluginInstance aInstance); */
  206. NS_IMETHODIMP nsPluginInstanceOwner::SetInstance(nsIPluginInstance *aInstance)
  207. {
  208.     return NS_ERROR_NOT_IMPLEMENTED;
  209. }
  210.  
  211. /* void getInstance (in nsIPluginInstanceRef aInstance); */
  212. NS_IMETHODIMP nsPluginInstanceOwner::GetInstance(nsIPluginInstance * & aInstance)
  213. {
  214.     return NS_ERROR_NOT_IMPLEMENTED;
  215. }
  216.  
  217. /* void getWindow (in nsPluginWindowStarRef aWindow); */
  218. NS_IMETHODIMP nsPluginInstanceOwner::GetWindow(nsPluginWindow * & aWindow)
  219. {
  220.     return NS_ERROR_NOT_IMPLEMENTED;
  221. }
  222.  
  223. /* readonly attribute nsPluginMode mode; */
  224. NS_IMETHODIMP nsPluginInstanceOwner::GetMode(nsPluginMode *aMode)
  225. {
  226.     return NS_ERROR_NOT_IMPLEMENTED;
  227. }
  228.  
  229. /* void createWidget (); */
  230. NS_IMETHODIMP nsPluginInstanceOwner::CreateWidget()
  231. {
  232.     return NS_ERROR_NOT_IMPLEMENTED;
  233. }
  234.  
  235. /* void showStatus (in string aStatusMsg); */
  236. NS_IMETHODIMP nsPluginInstanceOwner::ShowStatus(const char *aStatusMsg)
  237. {
  238.     return NS_ERROR_NOT_IMPLEMENTED;
  239. }
  240.  
  241. /* readonly attribute nsIDocument document; */
  242. NS_IMETHODIMP nsPluginInstanceOwner::GetDocument(nsIDocument * *aDocument)
  243. {
  244.     return NS_ERROR_NOT_IMPLEMENTED;
  245. }
  246.  
  247. /* void invalidateRect (in nsPluginRectPtr aRect); */
  248. NS_IMETHODIMP nsPluginInstanceOwner::InvalidateRect(nsPluginRect * aRect)
  249. {
  250.     return NS_ERROR_NOT_IMPLEMENTED;
  251. }
  252.  
  253. /* void invalidateRegion (in nsPluginRegion aRegion); */
  254. NS_IMETHODIMP nsPluginInstanceOwner::InvalidateRegion(nsPluginRegion aRegion)
  255. {
  256.     return NS_ERROR_NOT_IMPLEMENTED;
  257. }
  258.  
  259. /* void forceRedraw (); */
  260. NS_IMETHODIMP nsPluginInstanceOwner::ForceRedraw()
  261. {
  262.     return NS_ERROR_NOT_IMPLEMENTED;
  263. }
  264.  
  265. /* void getValue (in nsPluginInstancePeerVariable aVariable, in voidPtr aValue); */
  266. NS_IMETHODIMP nsPluginInstanceOwner::GetValue(nsPluginInstancePeerVariable aVariable, void * aValue)
  267. {
  268.     return NS_ERROR_NOT_IMPLEMENTED;
  269. }
  270.  
  271. /* void pluginNotAvailable (in string aMimeType); */
  272. NS_IMETHODIMP nsPluginInstanceOwner::PluginNotAvailable(const char *aMimeType)
  273. {
  274.     return NS_ERROR_NOT_IMPLEMENTED;
  275. }
  276.  
  277. /* End of implementation class template. */
  278. #endif
  279.  
  280.  
  281. #endif /* __gen_nsIPluginInstanceOwner_h__ */
  282.